﻿@{
    ViewBag.Title = "CardFlip";
}

<html lang="en"><head>
  <meta charset="utf-8">
  
  <!-- disable zooming -->
  <meta name="viewport" content="initial-scale=1.0; minimum-scale=1.0; maximum-scale=1.0; user-scalable=0;">
  
    @MvcHtmlString.Create(SquishIt.Framework.Bundle.Css().Add("~/Content/CSS/FlipCard.css").Render("~/Content/CSS/squished_#.css"))

  <title>Card Example</title>

    <style media="screen">
    .container {
      width: 200px;
      height: 260px;
      position: relative;
      margin: 0 auto 40px;
     
      -webkit-perspective: 800;
         -moz-perspective: 800;
          -ms-perspective: 800;
           -o-perspective: 800;
              perspective: 800;
    }
    
    #card {
      width: 100%;
      height: 100%;
      position: absolute;
      -webkit-transition: -webkit-transform 1s;
         -moz-transition: -moz-transform 1s;
          -ms-transition: -ms-transform 1s;
           -o-transition: -o-transform 1s;
              transition: transform 1s;
      -webkit-transform-style: perserve-3d;
         -moz-transform-style: perserve-3d;
          -ms-transform-style: perserve-3d;
           -o-transform-style: perserve-3d;
              transform-style: perserve-3d;
    }
    
    #card.flipped {
      -webkit-transform: rotateY( 180deg );
         -moz-transform: rotateY( 180deg );
          -ms-transform: rotateY( 180deg );
           -o-transform: rotateY( 180deg );
              transform: rotateY( 180deg );
    }
    
    #card figure {
      display: block;
      height: 100%;
      width: 100%;
      line-height: 260px;
      color: white;
      text-align: center;
      font-weight: bold;
      font-size: 20px;
      position: absolute;
      -webkit-backface-visibility: hidden;
         -moz-backface-visibility: hidden;
          -ms-backface-visibility: hidden;
           -o-backface-visibility: hidden;
              backface-visibility: hidden;
    }
    
    #card .front {
      background: red;
    }
    
    #card .back {
      background: blue;
      -webkit-transform: rotateY( 180deg );
         -moz-transform: rotateY( 180deg );
          -ms-transform: rotateY( 180deg );
           -o-transform: rotateY( 180deg );
              transform: rotateY( 180deg );
    }
  </style>

</head>
<body>

  <h1>Card 1</h1>
  
  <section class="container">
    <div id="card" class=" ">
      <figure class="front">Artikel details</figure>
      <figure class="back"><img src="../../Content/images/Kabel_.jpg"/></figure>
    </div>
  </section>
  
  <section id="options">
    <p><button id="flip">Flip Card</button></p>
  </section>


  <script src="../../Scripts/CardFlip.js"></script>
  <script src="../../Scripts/CardFlip2.js"></script>
  
  <footer>
    <p id="disclaimer">Sorry, your browser does not support CSS 3D transforms. Try viewing this page in <a href="http://www.apple.com/safari/">Safari</a>, <a href="http://www.google.com/chrome">Chrome</a> or on an iOS device.</p>
  </footer>


</body></html>
